Changes

Jump to navigation Jump to search
Imported page
<includeonly><!--
############# First check if the string starts with "establish" or "disestablish"
-->{{#ifeq: {{#invoke:String|match|s={{{1|}}}|pattern=%f[%a][eE]stablish|start=1|match=1|plain=false|nomatch=%%nomatch%%}}|%%nomatch%%<!--
-->|<!-- ### Doesn't match "establish"
### ... so try "disestablish"
-->{{#ifeq: {{#invoke:String|match|s={{{1|}}}|pattern=%f[%a][dD]isestablish|start=1|match=1|plain=false|nomatch=%%nomatch%%}}|%%nomatch%%<!--
-->|<!-- ### Doesn't match "disestablish", so return nothing
-->|<!-- Matches "disestablish", so replace the start of the string with "establish"
-->{{#invoke:String|replace|source={{{1|}}}|pattern=%f[%a][dD]isestablish|replace=establish|count=1|plain= false}}<!--
-->}}<!--
-->|<!-- ### Matches "establish", so replace the start of the string with "disestablish"
-->{{#invoke:String|replace|source={{{1|}}}|pattern=%f[%a][eE]stablish|replace=disestablish|count=1|plain= false}}<!--
-->}}<!--
--></includeonly><noinclude>
{{Documentation|content=A simple helper template used in establishment/disestablishment category header templates. Takes one parameter, which should be either "establish" or "disestablish", and returns the antonym.}}
[[Category:Arts chronology category header templates]]
</noinclude>
Bureaucrats, Check users, editor, emailconfirmed, Interface administrators, reviewer, smwadministrator, smwcurator, smweditor, Suppressors, Administrators
12,798

edits

Navigation menu