Template:Display censorship incident: Difference between revisions

From Censorpedia

(fix hardcoded category for medium)
(reduce the number of arraymaps, move extra stuff into a hidden div rather than using the nowiki tag)
Line 30: Line 30:
====Artist: {{#arraymap: {{{artist|}}} |, |@@@@ |[[Was created by::@@@@]] }}====
====Artist: {{#arraymap: {{{artist|}}} |, |@@@@ |[[Was created by::@@@@]] }}====


'''Year:''' {{#arraymap: {{{year|}}} |, |@@@@ |[[:Category:@@@@|@@@@]] {{#set: Has incident year=@@@@ }} }}
'''Year:''' {{#arraymap: {{{year|}}} |, |@@@@ |[[:Category:@@@@|@@@@]] [[Category:@@@@]] {{#set: Has incident year=@@@@ }} }}


'''Date of Action:''' [[Was challenged on date::August 2021]]
'''Date of Action:''' [[Was challenged on date::August 2021]]


'''Region:''' {{#arraymap: {{{region|}}} |, |@@@@ |[[:Category:@@@@|@@@@]] }}
'''Region:''' {{#arraymap: {{{region|}}} |, |@@@@ |[[:Category:@@@@|@@@@]] [[Category:@@@@]] }}


{{#if: {{{location|}}} |'''Location:''' [[Has location::{{{location|}}}]] |<!--'''Location:''' Not Specified--> }}
{{#if: {{{location|}}} |'''Location:''' [[Has location::{{{location|}}}]] |<!--'''Location:''' Not Specified--> }}


'''Subject:''' {{#arraymap: {{{subject|}}} |, |@@@@ |[[:Category:@@@@|@@@@]] }}
'''Subject:''' {{#arraymap: {{{subject|}}} |, |@@@@ |[[:Category:@@@@|@@@@]] [[Category:@@@@]] }}


'''Medium:''' {{#arraymap: {{{Mixed Media|{{{medium|}}}}}} |, |@@@@ |[[:Category:@@@@|@@@@]] }}
'''Medium:''' {{#arraymap: {{{Mixed Media|{{{medium|}}}}}} |, |@@@@ |[[:Category:@@@@|@@@@]] [[Category:@@@@]] }}


'''Confronting Bodies:''' [[Was confronted by::{{{confronting_bodies|}}}]]  
'''Confronting Bodies:''' [[Was confronted by::{{{confronting_bodies|}}}]]  
Line 55: Line 55:


[[Category:Censorship incident]]
[[Category:Censorship incident]]
{{#set: Case is ongoing={{{ongoing|}}} }}<nowiki/>
<div style="display: none">
{{#arraymap: {{{year|}}} |, |@@@@ |[[Category:@@@@]] |&#32; }}<nowiki/>
{{#set: Case is ongoing={{{ongoing|}}} }}
{{#arraymap: {{{region|}}} |, |@@@@ |[[Category:@@@@]] |&#32; }}<nowiki/>
{{#ifeq: {{{ongoing|}}} |yes |[[Category:Ongoing Case]] }}
{{#arraymap: {{{subject|}}} |, |@@@@ |[[Category:@@@@]] |&#32; }}<nowiki/>
{{#default_form:Censorship incident}}
{{#arraymap: {{{medium|}}} |, |@@@@ |[[Category:@@@@]] |&#32; }}<nowiki/>
</div>
{{#ifeq: {{{ongoing|}}} |yes |[[Category:Ongoing Case]] | }}<nowiki/>
{{#default_form:Censorship incident}}<nowiki/>
__NOTOC__
__NOTOC__
__NOEDITSECTION__
__NOEDITSECTION__
</includeonly>
</includeonly>

Revision as of 16:17, 30 January 2023

This is the "Display censorship incident" template. It should be called in the following format:

{{Censorship incident
|ongoing=
|year=
|region=
|subject=
|artist=
|medium=
|confronting_bodies=
|date_of_action=
|location=
|description_of_content=
|description_of_incident=
|description_of_result=
|image=
|source=
|sourcetext=
}}

Edit the page to see the template text.