Wiktenauer logo.png

Difference between revisions of "Template:Page"

From Wiktenauer
Jump to navigation Jump to search
 
 
Line 1: Line 1:
 
{{{!}} class="index"
 
{{{!}} class="index"
 
{{!}}+ [[page:{{{1|}}}|{{{2|}}}]]
 
{{!}}+ [[page:{{{1|}}}|{{{2|}}}]]
{{!}} [[file:{{{1|}}}|50x50px|center|link=page:{{{1|}}}]]
+
{{!}} <small>[[file:{{{1|}}}|50x50px|center|link=page:{{{1|}}}]]</small>
 
{{!}}}<noinclude>
 
{{!}}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!--{{#ifexist:page:{{{1|}}}/en|<span style{{=}}"background-color:#48d1cc;">{{{2|}}}</span>| -->
 
<!--{{#ifexist:page:{{{1|}}}/en|<span style{{=}}"background-color:#48d1cc;">{{{2|}}}</span>| -->
 
</noinclude>
 
</noinclude>

Latest revision as of 01:45, 26 August 2017

[[page:|]]
[[file:|50x50px|center|link=page:]]
[edit] [history] [purge] Documentation icon Template documentation

Old documentation

Replace the standard [[page:PageName.png|Num]] with {{page|PageName.png|Num}} once a page has been translated. It turns the link in the Index page from green to blue.

Num → {{page|PageName.png|Num}}

(There doesn't seem to be a way to make this function automatic, since there's no parser function that can tell if a translation exists other than {{#ifexist:}}, an expensive function that can only be used 100 times on any given page (making it unusable for any Index with more than a hundred scans).)