Changes

Jump to navigation Jump to search
no edit summary
Line 25: Line 25:  
}}
 
}}
 
</includeonly>
 
</includeonly>
 +
<noinclude>
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Property name",
 +
"type": "string"
 +
},
 +
"2": {
 +
"label": "Property value",
 +
"type": "string"
 +
},
 +
"3": {
 +
"label": "Media type",
 +
"type": "string",
 +
"default": "+"
 +
},
 +
"class": {
 +
"label": "Class",
 +
"example": "fixed",
 +
"type": "string"
 +
}
 +
},
 +
"description": "Selects media, optionally of the given type, filtered by the given property value. ",
 +
"paramOrder": [
 +
"1",
 +
"2",
 +
"3",
 +
"class"
 +
]
 +
}
 +
</templatedata>
 +
;Usage
 +
<pre>
 +
{{Media gallery filter
 +
|Year                    # Property name to be searched
 +
|1918                    # Property value to be filtered by
 +
|Newspaper ad            # Media type [ Newspaper ad | Newspaper clipping | Newspaper article | Photo | Letterhead | Map | Logo | Newspaper PDF | Non-newspaper ad ]
 +
}}
 +
</pre>
 +
;Result
 +
{{Media gallery filter
 +
|Year
 +
|1918
 +
|Newspaper ad
 +
}}
 +
;The same with the "fixed" tiles
 +
<pre>
 +
{{Media gallery filter
 +
|Year
 +
|1918
 +
|Newspaper ad
 +
|class=fixed
 +
}}
 +
</pre>
 +
;Result
 +
{{Media gallery filter
 +
|Year
 +
|1918
 +
|Newspaper ad
 +
|class=fixed
 +
}}
 +
</noinclude>
5,925

edits

Navigation menu