Give an example of applying a different template
This commit is contained in:
@@ -31,6 +31,55 @@ By default, the tool assumes that you are looking for tools on the English wikip
|
|||||||
Make sure the passed title matches the article title, and the tool should be able to find the wikidata entry.
|
Make sure the passed title matches the article title, and the tool should be able to find the wikidata entry.
|
||||||
The next section will go over what these infobox templates files are, where you can find them on wikipedia, and how you can customize them locally for your wikidata analysis.
|
The next section will go over what these infobox templates files are, where you can find them on wikipedia, and how you can customize them locally for your wikidata analysis.
|
||||||
|
|
||||||
|
### Interpretation of output
|
||||||
|
The left column of the table first lists all the properties that the infobox requires.
|
||||||
|
The right column will display the same property name if it is present in wikidata.
|
||||||
|
If it is not present, the right column will be blank.
|
||||||
|
Remaining properties in wikidata that are not required by the infobox are trailed in the right column.
|
||||||
|
|
||||||
|
``` markdown
|
||||||
|
┌──────────────────┬─────────────────────┐
|
||||||
|
│ Infobox requires │ Wikidata Earth (Q2) │
|
||||||
|
├──────────────────┼─────────────────────┤
|
||||||
|
│ P18 │ P18 │ // property: image
|
||||||
|
│ P170 │ P170 │ // property: creator
|
||||||
|
│ P571 │ P571 │ // property: inception
|
||||||
|
│ │ P31 │ // property: instance of
|
||||||
|
│ │ P138 │ // property: inception
|
||||||
|
│ │ P361 │ // property: part of
|
||||||
|
│ │ .... │
|
||||||
|
└──────────────────┴─────────────────────┘
|
||||||
|
```
|
||||||
|
|
||||||
|
This (shortened) example is complete, but if we were to try a different infobox template on the earth entry you can see that it is not a good fit.
|
||||||
|
To demonstrate, we can apply the software template to the earth entry:
|
||||||
|
|
||||||
|
``` markdown
|
||||||
|
┌──────────────────┬─────────────────────┐
|
||||||
|
│ Infobox requires │ Wikidata Earth (Q2) │
|
||||||
|
├──────────────────┼─────────────────────┤
|
||||||
|
│ P18 │ P18 │ // property: image
|
||||||
|
│ P154 │ │
|
||||||
|
│ P170 │ P170 │ // property: creator
|
||||||
|
│ P178 │ │
|
||||||
|
│ P275 │ │
|
||||||
|
│ P277 │ │
|
||||||
|
│ P306 │ │
|
||||||
|
│ P348 │ │
|
||||||
|
│ P400 │ │
|
||||||
|
│ P548 │ │
|
||||||
|
│ P571 │ P571 │ // property: inception
|
||||||
|
│ P577 │ │
|
||||||
|
│ P856 │ │
|
||||||
|
│ P1324 │ │
|
||||||
|
│ P2096 │ │
|
||||||
|
│ │ P10 │
|
||||||
|
│ │ P31 │
|
||||||
|
│ │ P138 │
|
||||||
|
│ │ .... │
|
||||||
|
└──────────────────┴─────────────────────┘
|
||||||
|
```
|
||||||
|
|
||||||
## Templates
|
## Templates
|
||||||
The wikipedia sites vary a lot when it comes to templates across the different languages.
|
The wikipedia sites vary a lot when it comes to templates across the different languages.
|
||||||
The goal of this tool is to be universal, but these templates have not been standardized as far as I am aware.
|
The goal of this tool is to be universal, but these templates have not been standardized as far as I am aware.
|
||||||
@@ -45,7 +94,7 @@ Then you can add the following line to that file locally:
|
|||||||
|
|
||||||
The program ignores what you put at the `...`.
|
The program ignores what you put at the `...`.
|
||||||
It permits templates that include a listing of wikidata entries for their templates.
|
It permits templates that include a listing of wikidata entries for their templates.
|
||||||
As an example, this is the case on the following template on the Dutch wikipedia (the first word means "uses"):
|
As an example, this is the case on the following software template on the Dutch wikipedia (the first word means "uses", it can be found here: https://nl.wikipedia.org/wiki/Sjabloon:Infobox_software):
|
||||||
|
|
||||||
``` text
|
``` text
|
||||||
{{Gebruikt Wikidata|P18|P154|P170|P178|P275|P277|P306|P348|P400|P548|P571|P577|P856|P1324|P2096}}
|
{{Gebruikt Wikidata|P18|P154|P170|P178|P275|P277|P306|P348|P400|P548|P571|P577|P856|P1324|P2096}}
|
||||||
|
|||||||
Reference in New Issue
Block a user