Template:Patch: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
(Dropping need for "|title|" part (1/2).)
m (Text replacement - "<br clear=all>" to "<br style="clear:both;" />")
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly
<includeonly


>{{#if: {{{2|}}}
>{{#if: {{{1|}}}
| {{#switch: {{{1|}}}
| {{#if: {{#ask: [[patch_title::{{{1}}}]] | ?patch_title | mainlabel=- }}
 
  | {{#ask: [[patch_title::{{{1}}}]]
  | title =
    |?patch_title = title
    {{#if: {{#ask: [[patch_title::{{{2}}}]] | ?patch_title | mainlabel=- }}
    |?patch_date #ISO = date
    | {{#ask: [[patch_title::{{{2}}}]]
    |?patch_postid #- = postid
      |?patch_title = title
    | mainlabel = -
      |?patch_date #ISO = date
    | headers = hide
      |?patch_postid #- = postid
    | format = plainlist
      | mainlabel = -
    | template = Patch forum link
      | headers = hide
    | named args = yes
      | format = plainlist
    }}{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#set:Patch_pages={{{1}}}}}{{#ifeq:{{{2|}}}|PCPa|[[Category:PCPa]]|[[Category:PCPm]]}}}}
      | template = Patch forum link
   | <br style="clear:both;" />{{error|Patch-title "{{{1}}}" Not Found! )|( <i>Template:Patch</i>: }}
      | named args = yes
      }}<!--{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#set:Patch_pages={{{2}}}}}}}-->{{#set:Patch_pages={{{2}}}}}{{#if:{{{3|}}}|[[Category:PCPa]]|[[Category:PCPm]]}}
    | <br clear=all>{{error|Patch-title "{{{2}}}" Not Found! )|( <i>Template:Patch</i>: }}
    }}
 
   | #default =
    <br clear=all>{{error|Invalid First Type-part "{{{1}}}" Input! )|( <i>Template:Patch</i>: }}
 
  }}<!-- switch:end -->
 
| {{#if: {{{1|}}}
  | {{#if: {{#ask: [[patch_title::{{{1}}}]] | ?patch_title | mainlabel=- }}
    | {{#ask: [[patch_title::{{{1}}}]]
      |?patch_title = title
      |?patch_date #ISO = date
      |?patch_postid #- = postid
      | mainlabel = -
      | headers = hide
      | format = plainlist
      | template = Patch forum link
      | named args = yes
      }}<!--{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#set:Patch_pages={{{1}}}}}}}-->{{#set:Patch_pages={{{1}}}}}
    | <br clear=all>{{error|Patch-title "{{{1}}}" Not Found! )|( <i>Template:Patch</i>: }}
    }}
  | <br clear=all>{{error|Missing First Type-part Input! )|( <i>Template:Patch</i>: }}
   }}
   }}
| <br style="clear:both;" />{{error|Missing Patch-title Input! )|( <i>Template:Patch</i>: }}
}}</includeonly
}}</includeonly


><noinclude>
><noinclude>{{documentation}}<!-- debug --
 
;Usage
: <code><nowiki>{{ Patch | <INPUT-TYPE> | <INPUT-DATA> }}</nowiki></code> (''surrounding spaces not needed'')
:: INPUT-TYPE: "title" (''keyword is case sensitive'')
 
:1) <code><nowiki>{{Patch| title | Le Petit Fix }}</nowiki></code> (''title data is case sensitive'')
 
:Returns forum link: {{{{PAGENAME}}|title|Le Petit Fix}}
 
::- Output might change a bit over time.
::- Output style intended to stay html-inline-type. (''opposite of html-block-type'')
::- See the [[Game Updates]] page for available Patch title/date strings. (''Legacy patches not supported'')
 
;Note
: In title cases like "Dust &amp; Mud" use a bare "&", using "&amp;amp;" in the title parameter will not work.
:: (''This applies not to the actual Patch Property sub-object data setup'')
 
<!-- debug --
;Preview/Debug
;Preview/Debug


:00){{{{PAGENAME}} }}
:1){{{{PAGENAME}} }}
 
:2){{{{PAGENAME}}|foobar}}
:11){{{{PAGENAME}}|title}}
:3){{{{PAGENAME}}|Le Petit Fix}}
:12){{{{PAGENAME}}|foobar}}
:13){{{{PAGENAME}}|Le Petit Fix}}
 
:21){{{{PAGENAME}}|title|title}}
:22){{{{PAGENAME}}|foobar|foobar}}
 
:41){{{{PAGENAME}}|title|Le Petit Fix}}
-->


<noinclude>
--><noinclude>

Latest revision as of 22:16, 14 November 2024

Template documentation (for the template shown above, sometimes hidden or invisible)
Usage
{{ Patch | <PATCH-NAME> }}


Example
Typing "... added in {{Patch|Le Petit Fix}} patch."
Returns "... added in Le Petit Fix (2015-11-10) patch."
The link links to the related patch development page on the Haven & Hearth forum.


Details
The patch-name is case sensitive.
See the Game Updates page for known/correct patch names.

Visit Template:Patch/doc to edit this text! (How does this work?)