Template:post-getTypeName
From Homestar Runner Wiki
(Difference between revisions)
(no need to name the template's only (and most important) parameter) |
(update default parameter handling now that I know how to do it properly (thanks to https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Parser_functions_in_templates )) |
||
Line 1: | Line 1: | ||
- | {{#switch:{{{1|{{ | + | {{#switch:{{#if:{{{1|}}}|{{{1|}}}|{{PAGENAME}}}}|@strongbadactual (Instagram)=Post|#default=Tweet}}<span style="display:none">{{PAGENAME}}</span><noinclude> |
:See {{t|post}} | :See {{t|post}} | ||
*Helper function to detect the post type name ("Tweet" or Instagram "Post") | *Helper function to detect the post type name ("Tweet" or Instagram "Post") | ||
[[Category:Toon Article Formatting Templates|{{PAGENAME}}]]</noinclude> | [[Category:Toon Article Formatting Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 08:51, 23 January 2021
Tweet
- See {{post}}
- Helper function to detect the post type name ("Tweet" or Instagram "Post")