Template:Transwiki guide/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Mr. Stradivarius
copy from Template:Transwiki guide and expand
 
Ookami (talk | contribs)
m 2 revisions imported
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
This adds a tag to the top of a template documentation page indicating that the template has a transwiki guide. It automatically includes pages it is transcluded on in [[:Category:Transwiki guide]]. If the template has a document page, you should add it inside {{tag|includeonly}} tags at the top.


== Syntax ==
== Syntax ==
Line 10: Line 12:
'''All parameters'''
'''All parameters'''


  &#123;&#123;transwiki guide&#124;''page''&#124;''category sort''&#125;&#125;
  &#123;&#123;transwiki guide&#124;''page''&#124;''category sort''&#124;small=''yes''&#125;&#125;
 
== Usage ==
 
Parameter {{{1}}} provides the option to change the page name of the transwiki guide if desired, <nowiki>[[{{FULLPAGENAME}}/Transwiki guide]]</nowiki> by default.


Parameter {{{2}}} is for changing the category sorting, <nowiki>{{PAGENAME}}</nowiki> by default.
== Parameters ==


Adding this tag to the page will automatically include it in [[:Category:Transwiki guide]]. If the template has a document page, you should add it inside the <code><nowiki><includeonly></nowiki></code> tag at the beginning of the document.
* <code>1</code> - a custom transwiki page. The default is <nowiki>[[{{FULLPAGENAME}}/Transwiki guide]]</nowiki>.
* <code>2</code> - a custom sort key for [[:Category:Transwiki guide]]. The default is <nowiki>{{PAGENAME}}</nowiki>.
* <code>small</code> - if this is set to "yes", a small template is output.


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Latest revision as of 13:56, 3 September 2020

This adds a tag to the top of a template documentation page indicating that the template has a transwiki guide. It automatically includes pages it is transcluded on in Category:Transwiki guide. If the template has a document page, you should add it inside <includeonly>...</includeonly> tags at the top.

Syntax

Basic

{{transwiki guide}}

All parameters

{{transwiki guide|page|category sort|small=yes}}

Parameters

  • 1 - a custom transwiki page. The default is [[{{FULLPAGENAME}}/Transwiki guide]].
  • 2 - a custom sort key for Category:Transwiki guide. The default is {{PAGENAME}}.
  • small - if this is set to "yes", a small template is output.