跳转到内容
RA2DIY-WIKI 当前处于维护模式:页面上的内容随时可能发生更改且不会事先告知。

Template:Doc:修订间差异

来自RA2DIY
Admin留言 | 贡献
创建页面,内容为“: ''This template should be used in favor of Template:tt when styling flags.'' This template is used to format flag mentions on ModEnc pages. Depending on the arguments provided, it can format flags in the following ways: ==Flag only== <pre>{{f|FLAGNAME}}</pre> This will only apply text formatting to the flag.<br> '''Where''' *FLAGNAME = name of the flag to process '''Example:''' <code><nowiki>{{f|Damage}}</nowiki></code> {{arr|r}} {{f|Damage}} ==Flag on…”
 
无编辑摘要
第1行: 第1行:
: ''This template should be used in favor of [[Template:tt]] when styling flags.''
<includeonly><div class="template-documentation" style="background: aliceblue; padding: 1em; border: 1px solid #aaa; clear:both;"><!--
This template is used to format flag mentions on ModEnc pages. Depending on the arguments provided, it can format flags in the following ways:
--><div class="template-documentation-header" style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex"><!--
--><span style="font-weight: bold; font-size: 150%">{{#switch:{{NAMESPACE}}<!--
-->|{{ns:template}}=[[File:Template-info.png|50px|link=]] Template Documentation<!--
-->|{{ns:module}}=[[File:Template-info.png|50px|link=]] Module Documentation<!--
-->|{{ns:widget}}=[[File:Template-info.png|50px|link=]] Widget Documentation<!--
-->|#default=[[File:Template-info.png|50px|link=]] Documentation}}</span><!--


==Flag only==
-->&nbsp;&nbsp;<span class="editsection plainlinks" style="font-size:small;" id="doc_editlinks"><!--
<pre>{{f|FLAGNAME}}</pre>
##If the independent documentation page exists (takes precedence over in-line documentation)
This will only apply text formatting to the flag.<br>
-->{{#ifexist:{{{doclink|{{SUBJECTPAGENAME}}/doc}}}<!--
'''Where'''
-->|<nowiki>[</nowiki>[[{{{doclink|{{SUBJECTPAGENAME}}/doc}}}|View]]<nowiki>] </nowiki><!--
*FLAGNAME = name of the flag to process
--><nowiki>[</nowiki>[{{fullurl:{{{doclink|{{SUBJECTPAGENAME}}/doc}}}|action=edit}} Edit]<nowiki>] </nowiki><!--
'''Example:''' <code><nowiki>{{f|Damage}}</nowiki></code> {{arr|r}} {{f|Damage}}
--><nowiki>[</nowiki>[{{fullurl:{{{doclink|{{SUBJECTPAGENAME}}/doc}}}|action=history}} History]<nowiki>] </nowiki><!--
##If this is an in-line documentation
-->|{{#if:{{{1|}}}|<nowiki>[</nowiki>[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit]<nowiki>] </nowiki><!--
-->|<nowiki>[</nowiki>[{{fullurl:{{{doclink|{{SUBJECTPAGENAME}}/doc}}}|action=edit}} Create]<nowiki>] </nowiki>}}}} <!--
##Do not display Help if this page is Template:Documentation
-->{{#ifeq:{{FULLPAGENAME}}|Template:Documentation|<!--
-->|<nowiki>[</nowiki>[[Template:Documentation|Help]]<nowiki>] </nowiki>}}<!--
##General item
--><nowiki>[</nowiki>[{{fullurl:{{FULLPAGENAMEE}}|action=purge}} Refresh]<nowiki>]</nowiki></span></div><!--


--><div id="template_doc_page_transcluded" class="dablink plainlinks" style="font-size:85%;"><!--
-->{{#ifexist:{{{doclink|{{SUBJECTPAGENAME}}/doc}}}|This document transclude from [[{{{doclink|{{SUBJECTPAGENAME}}/doc}}}]].<!--
-->|{{#if:{{{1|}}}|This is an in-line documentation.|The documentation haven't been [{{fullurl:{{{doclink|{{SUBJECTPAGENAME}}/doc}}}|action=edit}} create]d.}}}}</div><!--


==Flag only, linked==
--><div style="margin:0 1em;">
<pre>{{f|FLAGNAME|link}}</pre>
{{#if:{{{notoc|}}}|__NOTOC__|{{Toc|{{#if:{{{toc|right}}}|{{{toc|right}}}|right}}}}}}
This will apply text formatting and link to the flag's page.<br>
{{#ifexist:{{{doclink|{{SUBJECTPAGENAME}}/doc}}}|{{{{{doclink|{{SUBJECTPAGENAME}}/doc}}}}}<!--
'''Where'''
##In-line documentation
*FLAGNAME = name of the flag to process
-->|{{#if:{{{1|}}}|{{{1|}}}}}}}</div></div></includeonly><noinclude>
*link = constant trigger to trigger linking
{{documentation}}</noinclude>
'''Example:''' <code><nowiki>{{f|Damage|link}}</nowiki></code> {{arr|r}} {{f|Damage|link}}<br>
'''Subsection:''' <code><nowiki>{{f|Damage#IsLocomotor|link}}</nowiki></code> {{arr|r}} {{f|Damage#IsLocomotor|link}}
 
 
==Flag with value==
<pre>{{f|FLAGNAME|VALUE}}</pre>
This will apply text formatting and append the provided value.<br>
'''Where'''
*FLAGNAME = name of the flag to process
*VALUE = the value the flag to process should be displayed with
'''Example:''' <code><nowiki>{{f|Damage|100}}</nowiki></code> {{arr|r}} {{f|Damage|100}}
 
 
==Flag with value, linked==
<pre>{{f|FLAGNAME|VALUE|link}}</pre>
This will apply text formatting, append the provided value and link to the flag's page.<br>
'''Where'''
*FLAGNAME = name of the flag to process
*VALUE = the value the flag to process should be displayed with
*link = constant trigger to trigger linking
'''Example:''' <code><nowiki>{{f|Damage|100|link}}</nowiki></code> {{arr|r}} {{f|Damage|100|link}}<br>
'''Subsection:''' <code><nowiki>{{f|Damage#IsLocomotor|100|link}}</nowiki></code> {{arr|r}} {{f|Damage#IsLocomotor|100|link}}

2025年5月3日 (六) 07:16的版本